package com.gxa.service;

import com.gxa.pojo.Operation;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OperationService {

   // public boolean selectOperation(Operation operation);
   public List<Operation> selectOperation(int pageNum, int pageSize);
    /**
     * 通过operation_name查询单条数据
     *
     * @param operation 主键
     * @return 实例对象
     */
    List<Operation> query(Operation operation);

    /**
     * 分页查询
     *
     * @param operation 筛选条件
     * @param page 页数
     * @param size 条数
     * @return 查询结果
     */
    List<Operation> queryByPage(Operation operation,int page,int size);

    /**
     //* @param operation
     * @return
     */
    public boolean deleteOperation(String operation_type);

    boolean insertOperation(Operation operation);
}
